package com.example.Controller;

import com.example.Service.EyeService;
import com.example.staticlei.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/eye")
@RestController
@Slf4j
@CrossOrigin
public class EyeController {
    @Autowired
    private EyeService eyeService;

    @GetMapping("/eyes")
    public Result ReturnEyeMessage(@RequestParam String time){
      return Result.success(eyeService.eyeMessage(time)) ;
    }
}
